package com.workcell.workdata.xthings.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "SerialDeviceDto", description = "监控中心-串口设备信息")
public class SerialDeviceMonitorDto {
    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("短链码")
    private String chainNum;

    @ApiModelProperty("二维码id")
    private String codeId;

    @ApiModelProperty("设备编码")
    private String deviceNo;

    @ApiModelProperty("硬件名称")
    private String hardwareName;

    @ApiModelProperty("硬件类型")
    private String hardwareType;

    @ApiModelProperty("备注名称")
    private String alias;

    @ApiModelProperty("最近上线时间")
    private LocalDateTime lastOnlineTime;

    @ApiModelProperty("设备状态")
    private String useState;

    @ApiModelProperty("在线子设备数量")
    private Integer onlineCount;

    @ApiModelProperty("所有子设备数量")
    private Integer totalCount;

    @ApiModelProperty("激活时间")
    private LocalDateTime activeTime;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("厂商编码")
    private String manufacturerCode;

    @ApiModelProperty("工作模式-枚举编码")
    private String workingMode;

    @ApiModelProperty("工作模式-枚举名称")
    private String workingModeName;

    @ApiModelProperty("MAC/ICCID")
    private String macAddress;

    @ApiModelProperty("波特率")
    private String baudRate;

    @ApiModelProperty("发布主题")
    private String publishTopic;

    @ApiModelProperty("订阅主题")
    private String subscribeTopic;
}
